<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div id="header">
	<script type="text/javascript">
		var getgoods = "<?php echo U('Index/getGoodsName');?>";
		var search = "<?php echo U('Search/index');?>";
		var showlist = "<?php echo U('List/index');?>";
	</script>
			<!-- 头部广告位置 -->
			<div class="adWrap">
				<div class="headAd">
					<a href="">
						<img src="http://127.0.0.1/vancl_php/Application/Index/View/Img/head_top_ad.jpg" alt="头部广告位" />
					</a>
				</div>
				<!-- 头部广告位置结束 -->
			</div>
			<!--头部登陆信息开始-->
			<div class="toptopare">
				<div class="arewarp">
					<!--左边欢迎登陆文字开始-->
						<div class="welcome">
							    <?php if(isset($hd['session']['uid'])){ ?>
								 您好！
							 <a href="<?php echo U('UserInfo/index');?>" style="color:#B81B22;font-weight: 700;"><?php echo $hd['session']['username'];?></a>
							 <a href="<?php echo U('Login/loginout');?>" style="color:#B81B22;">退出登录</a>
							<?php }else{ ?>
							您好,欢迎光临凡客诚品！
							<span class="loginreg">
								<a href="<?php echo U('Login/index');?>">登陆</a>
								｜ 
								<a href="<?php echo U('Register/index');?>">注册</a>
							</span>
							<?php } ?>
						</div>
					<!--左边欢迎登陆文字结束-->
					<!--订单收藏-->
						<div class="orderads">
							<a href="<?php echo U('UserInfo/orderList');?>">我的订单</a>
								 
							<a href="">收藏本站</a>
						</div>
					<!--订单收藏结束-->
					<!-- 右边下拉列表-->
					<div class="droplist">
						<div href="" id="myVancl" class="mylist">
							<a href="">我的凡客 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站导航 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">帮助中心 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">购物指南</a></li>
								<li><a href="">配送方式</a></li>
								<li><a href="">支付方式</a></li>
								<li><a href="">售后服务</a></li>
								<li><a href="">投诉建议</a></li>
								<li><a href="">在线客户</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站公告 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
					</div>
					<!--右边下拉列表结束-->
				</div>
			</div>
			<!--头部登陆信息结束-->
			<!--logo和搜索条-->
			<div class="logoArea">
				<!--logo-->
				<a href="<?php echo U('Index/index');?>" class="logo"></a>
				<!--logo结束-->
				<!--搜索区开始-->
				<div class="serachArea">
					<div class="searchTopAre">
					<!--搜索框-->
					<div class="searchInput">
						<form action="<?php echo U('Search/index');?>" method="get">
							<input type="text" name="searchkey" autocomplete="off" id="inputBox"/>
							<div class="inputbox" >
							</div>
							<input type="submit" id="searchBtn" value="搜索" />
						</form>
					</div>
					<!--购物车-->
					<div class="shopCart">
						<a href="<?php echo U('Cart/index');?>" style="color:white">购物车</a>(<span class="carNum">    <?php if(isset($hd['session']['cart']['total_rows'])){ ?><?php echo $hd['session']['cart']['total_rows'];?><?php }else{ ?>0<?php } ?></span>)
						<div class="showCartList">
							<!--目前没有商品-->
							<p class="cartTitle">最近加入购物车</p>
							<ul>
								
							</ul>
							<!--购物车底部-->
							<div class="cartBottom">
								<div class="left">
									共计
									<p>￥0.00元</p>
								</div>
								<!--右边进入详细购物车页-->
								<div class="right">
									<a href="<?php echo U('Cart/index');?>">查看购物车</a>
								</div>
							</div>
						</div>
					</div>
					<!--购物车结束-->
					</div>
					<!--热门搜索-->
					<div class="hotKeyword">
						<!--<span>热门搜索:</span>
						<a href="">吉武国</a>
						<a href="">T恤</a>
						<a href="">卡其裤</a>
						<a href="">长场雄</a>
						<a href="">POLO</a>
						<a href="">麻牛仔</a>
						<a href="">皮肤衣</a>
						<a href="">牛津纺</a>-->
					</div>
					<!--热门搜索结束-->
					
					<!--搜索框结束-->
				</div>
				<!--搜索区结束-->
			</div>
			<!--logo和搜索条结束-->
			<!--导航区-->
			<div id="navbar" style="position:relative;">
				<div class="navFirst" >
					全部商品分类
					
					<!--下拉菜单 -->
					<div class="dropLists" style="text-align: left;">
					
						<?php foreach ($rightCateTree as $key=>$val){?>
						<dl>
							<span><?php echo $val['cname'];?></span>
							<?php foreach ($val['son'] as $k=>$v){?>	
							    <?php if($k==0){ ?>
								<dd>
							<?php }else{ ?>
								<dd class="otherCate">
							<?php } ?>
								<p>
									<a href="http://127.0.0.1/vancl_php/index.php/Index/List/index/cid/<?php echo $v['cid'];?>"><?php echo $v['cname'];?></a>
								</p>
								
								<p class="sonCate">
									<?php foreach ($v['son'] as $ky=>$vl){?>
										<a href="http://127.0.0.1/vancl_php/index.php/Index/List/index/cid/<?php echo $vl['cid'];?>"     <?php if($vl['is_hot']==1){ ?>class="hot"<?php }else{ ?>class="nothot"<?php } ?> ><?php echo $vl['cname'];?></a>
									<?php }?>
								</p>
														
							</dd>
							<?php }?>
							</dl>
    					<?php }?>
    					
					</div>
					<!--下拉菜单 -->
					<span class="downArrowTop"></span>
				</div>
				<div class="navList" >
					<ul>
						<?php foreach ($topCate as $key=>$val){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$val['cid']));?>" title=<?php echo $val['ckeywords'];?>><?php echo $val['cname'];?></a>
							<!--当前这个分类下页推荐的2个商品-->
							<div class="cateProduct">
								<!--分页推荐商品左边-->
								<?php foreach ($val['son'][0] as $kk=>$vv){?>
								<div class="productLeft"     <?php if($kk==1){ ?>style="border:none;"<?php } ?>>
									<div class="wrapProduct">
										<a href="http://127.0.0.1/vancl_php/index.php/Index/Details/index/gid/<?php echo $vv['gid'];?>">
											<img src="http://127.0.0.1/vancl_php/<?php echo $vv['goods_listimg'];?>" alt="" width="140" height="140" />
										</a>
										<p class="goods">
											<a href="http://127.0.0.1/vancl_php/index.php/Index/Details/index/gid/<?php echo $vv['gid'];?>"><?php echo hd_substr($vv['goods_name'],8,'');?></a>
										</p>
										<div class="goodsDesc">
											<p class="goodsPrice" style="margin-top:50px;margin-left:20px;">
											￥<?php echo $vv['shop_price'];?>
											</p>
										</div>
										
									</div>
								</div>
								<?php }?>
							</div>
						</li>
						<?php }?>
					</ul>
				</div>
			</div>
			<!--导航区结束-->
		</div>
		<!-- 头部结束  -->